home *** CD-ROM | disk | FTP | other *** search
- /* Test of drawing a histogram with MathFX library. */
- /* Copyright (©) 1995, the Xperts Group Inc. All Rights Reserved. */
- /* Author: Manolis S Pappas. */
-
- #include <math.h>
-
- main()
- {
- int i;
- float data[2048];
-
- /* Fill up data points */
-
- for (i=0; i<2048; i++)
- data[i]=sin(0.01*(i+1));
-
- fxstar(1,1);
- fxhist(2048,data,-1.1,1.1,44,0);
- fxlab("\\frValue","\\frFrequency",
- "\\frProbability function of Oscillator");
-
- fxend();
- }
-